package {
	import Classes.CLoader;
	
	import api_servers.api_externalserver;
	import api_servers.api_myserver;
	import api_servers.pjf_mylocal;
	import api_servers.pjf_vkeserver;
	
	import classes.pj_freeBase;
	import classes.pjf_manager;
	
	import flash.system.Security;
	
	import manager.pi_manager;

	[SWF(width="760", height="956", backgroundColor="#FFFFFF")]
	public class pj_freeVK extends pj_freeBase {
		public function pj_freeVK() {
//			photo_inject.APPWIDTH = 1060;
//			super(['http://79.174.65.174', 'http://79.174.65.174', 'http://79.174.65.174', 'http://79.174.65.174']);
			super(['http://188.127.227.55', 'http://188.127.227.55', 'http://188.127.227.55', 'http://188.127.227.55']);
		}
		
		override protected function securityInit(): void {
			Security.allowDomain('*');
			Security.loadPolicyFile('http://api.vkontakte.ru/' + CLoader.CROSSDOMAINXML);
			super.securityInit();
		}
		
		override protected function createManater(): pi_manager {
			return new pjf_manager(this);
		}
	
		override protected function createExternalServer(): api_externalserver {
//			return new pjf_server(this);
			return new pjf_vkeserver(this);
		} 
		
		override protected function createMyServer(): api_myserver {
//			return new pjf_myserver(this, pi_servers.ADDR[0] + '/games/index_pjf_ms.php', externalserver.app_id, externalserver.secret);
			return new pjf_mylocal(this);
		}
	}
}
